﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="foundStatistics.aspx.cs"
    Inherits="Web.Views.AgentManager.foundStatistics" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>资金统计</title>
    <style type="text/css">
        body
        {
            font-size: 12px;
        }
    </style>
    <style type="text/css">
        #getplatform
        {
            position: absolute;
            background-color: #FF7A23;
            visibility: hidden;
            color: #FF7A23;
            background: #fcfcfc;
            border: 1px #ccc solid;
            border-color: #FF7A23;
            list-style: none;
            cursor: pointer;
        }
        .hint
        {
            border-bottom: 1px dashed #C1C1C1;
            background: #FFFFFF;
            color: #656565;
            font-size: 12px;
            padding-left: 6px;
        }
        .mover
        {
            background: #FFF4D2;
            padding-left: 6px;
            line-height: 120%;
            border-top: 1px solid #FB6E04;
            border-bottom: 1px solid #FB6E04;
            cursor: hand;
            font-size: 12px;
            color: #FF9A00;
        }
        .mout
        {
            background: #FFFFFF;
            line-height: 120%;
            border-top: 1px solid #FFFFFF;
            border-bottom: 1px solid #FFFFFF;
            padding-left: 6px;
            font-size: 12px;
            color: #FF9A00;
        }
        .selected
        {
            background: #FF9900;
            line-height: 120%;
            font-size: 12px;
            color: #FFFFFF;
            border-top: 1px solid #F2F8FF;
            border-bottom: 1px solid #F2F8FF;
            padding-left: 6px;
        }
        .tdleft
        {
            font-size: 12px;
            padding-left: 6px;
        }
        .tdright
        {
            padding-right: 4px;
        }
    </style>

    <script src="../../Content/JS/datatime.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div style="border-width: 2px; border-color: #BFFFFF; width: 900px; border-top-style: groove;
        border-bottom-style: groove;">
        <div style="width: 155px; float: left;">
            订单号：<asp:TextBox ID="txtOrderNum" runat="server" Width="94px"></asp:TextBox>
        </div>
        <div style="float: left;  margin-left:10px; margin-right:10px">
         交易类型:<asp:DropDownList ID="ddlPay" runat="server">
                <asp:ListItem Value="所有" Text="所有" Selected="True"></asp:ListItem>
                <asp:ListItem Value="收款" Text="收款"></asp:ListItem>
                <asp:ListItem Value="退款" Text="退款"></asp:ListItem>
        </asp:DropDownList>
        </div>
        <div style="width: 339px; float: left;">
            日期：<%--<input id="inDate" runat="server" onblur="showHint(this,1)" style="width: 111px;
                color: #c1c1c1" onfocus="showHint(this,10,'outDate')" value="yyyy-mm-dd" name="inDate" />~
                
            <input id="outDate" runat="server" onblur="showHint(this,1)" style="width: 109px;
                color: #c1c1c1" onfocus="showHint(this)" value="yyyy-mm-dd" name="outDate" />--%>
                
            <asp:TextBox ID="inDate" runat="server" onblur="showHint(this,1)" style="width: 111px;
                color: #c1c1c1" onfocus="showHint(this,10,'outDate')" value="yyyy-mm-dd" name="inDate"></asp:TextBox>
              <asp:TextBox ID="outDate" runat="server" onblur="showHint(this,1)" style="width: 109px;
                color: #c1c1c1" onfocus="showHint(this)" value="yyyy-mm-dd" name="outDate"></asp:TextBox>
                </div>
        <div style="width: 150px;">
            <asp:Button ID="BtnSelect" runat="server" Text="点击查询" OnClick="BtnSelect_Click" />
          
        </div>
    </div>
    <div style="width:634px; text-align:left;">
               
        <asp:GridView ID="gdvFunds" runat="server" AutoGenerateColumns="False" 
             AllowPaging="True" DataSourceID="odsFunds" AllowSorting="True" 
           Width="620px" >
            <Columns>
                <asp:TemplateField HeaderText="订单号" SortExpression="OrderNumber">
                    <ItemTemplate>
                        <%--<asp:Label ID="Label3" runat="server" Text='<%# Bind("OrderNum") %>'></asp:Label>--%>
                        <a href="OrderSelect.aspx?OrderID=<%#Eval("OrderID") %>" style="color: Blue"><%#Eval("OrderNumber")%></a>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                 <asp:BoundField DataField="NotifyTime" HeaderText="交易时间" 
                    SortExpression="NotifyTime"  DataFormatString="{0:F}">
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="TradeNo" HeaderText="交易流水号" SortExpression="TradeNo" >
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="PayType" HeaderText="交易类型" SortExpression="PayType" >
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="Travel" HeaderText="行程" SortExpression="Travel" >
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="PayAmount" HeaderText="交易金额" 
                    SortExpression="PayAmount" DataFormatString="{0:￥#,##0.00}" >
                 <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                 <asp:BoundField DataField="CreateOn" HeaderText="订单日期" 
                    SortExpression="CreateOn"  DataFormatString="{0:F}">
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="SellerEmail" HeaderText="交易账号" 
                    SortExpression="BuyerEmail"  >
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="AgentID" HeaderText="售票点" SortExpression="AgentID" 
                    Visible="false" >
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
            </Columns>
            <HeaderStyle HorizontalAlign="Center" />
        </asp:GridView>
        <asp:ObjectDataSource ID="odsFunds" runat="server" 
            SelectMethod="GetFunds" TypeName="Easydp.Controllers.TradeController" 
            OldValuesParameterFormatString="original_{0}" 
            >
            <SelectParameters>
                <asp:ControlParameter ControlID="HiddenField1"  Name="AgentID" 
                    PropertyName="Value" Type="Int32" />
                <asp:ControlParameter ControlID="txtOrderNum" DefaultValue="" 
                    Name="OrderNumber" PropertyName="Text" Type="String" />
                <asp:ControlParameter ControlID="inDate" Name="inDate" PropertyName="Text" 
                    Type="String" />
                <asp:ControlParameter ControlID="outDate" DefaultValue="" Name="outDate" 
                    PropertyName="Text" Type="String" />
                <asp:ControlParameter ControlID="ddlPay" Name="tradeType" 
                    PropertyName="SelectedValue" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:HiddenField ID="HiddenField1" runat="server" />
        <div style="width:450;text-align:right;"><span runat="server" style="color:Blue;" id="spanSum"></span></div>
    </div>
    
    </form>
</body>
</html>
